package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceActionMapper;
import com.ruoyi.service.domain.ServiceAction;
import com.ruoyi.service.service.IServiceActionService;

/**
 * 动作信息维护表Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-25
 */
@Service
public class ServiceActionServiceImpl implements IServiceActionService 
{
    @Autowired
    private ServiceActionMapper serviceActionMapper;

    /**
     * 查询动作信息维护表
     * 
     * @param actionId 动作信息维护表主键
     * @return 动作信息维护表
     */
    @Override
    public ServiceAction selectServiceActionByActionId(Long actionId)
    {
        return serviceActionMapper.selectServiceActionByActionId(actionId);
    }

    /**
     * 查询动作信息维护表列表
     * 
     * @param serviceAction 动作信息维护表
     * @return 动作信息维护表
     */
    @Override
    public List<ServiceAction> selectServiceActionList(ServiceAction serviceAction)
    {
        return serviceActionMapper.selectServiceActionList(serviceAction);
    }

    /**
     * 新增动作信息维护表
     * 
     * @param serviceAction 动作信息维护表
     * @return 结果
     */
    @Override
    public int insertServiceAction(ServiceAction serviceAction)
    {
        return serviceActionMapper.insertServiceAction(serviceAction);
    }

    /**
     * 修改动作信息维护表
     * 
     * @param serviceAction 动作信息维护表
     * @return 结果
     */
    @Override
    public int updateServiceAction(ServiceAction serviceAction)
    {
        return serviceActionMapper.updateServiceAction(serviceAction);
    }

    /**
     * 批量删除动作信息维护表
     * 
     * @param actionIds 需要删除的动作信息维护表主键
     * @return 结果
     */
    @Override
    public int deleteServiceActionByActionIds(Long[] actionIds)
    {
        return serviceActionMapper.deleteServiceActionByActionIds(actionIds);
    }

    /**
     * 删除动作信息维护表信息
     * 
     * @param actionId 动作信息维护表主键
     * @return 结果
     */
    @Override
    public int deleteServiceActionByActionId(Long actionId)
    {
        return serviceActionMapper.deleteServiceActionByActionId(actionId);
    }
}
